package com.bobochang.warehouse.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bobochang.warehouse.entity.Department;
import com.bobochang.warehouse.page.Page;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DepartmentMapper extends BaseMapper<Department> {


    Department findDepartmentByName(String departmentName);

    void insertDempartment(Department department);

    void updateDepartmentById(Department department);

    List<Department> selectDepartmentPage(Page page, Department department);
}
